<template>
  <div class="goods-list">
    <GoodsListItem
      v-for="item in goods"
      :key="item.id"
      :goodsItem="item"
    ></GoodsListItem>
  </div>
</template>

<script>
import GoodsListItem from "./GoodsListItem.vue";
export default {
  props: {
    goods: {
      type: Array,
    },
  },
  components: {
    GoodsListItem,
  },
};
</script>

<style lang="less" scoped>
.goods-list {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  background-color: #f4f4f4;
}
</style>